﻿@model FC.Data.ViewModels.Account.LoginForm

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "登录";
}

<div class="row" style="margin:100px 0;">
    <div class="col-md-8">

    </div>
    <div class="col-md-4" style="background-color:#F7F7F7; padding:50px 30px 20px;">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form-horizontal">
                <h3 style="font-family: '黑体'">用户登录</h3>
                <hr />
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                <div class="form-group">
                    <div class="col-md-12" style="height:50px;">
                        <span class="glyphicon glyphicon-user form-control-feedback" style="left:15px"></span>
                        @Html.EditorFor(model => model.UserName, new { htmlAttributes = new { @class = "form-control", style="padding-left:30px;" } })
                        @Html.ValidationMessageFor(model => model.UserName, "", new { @class = "text-danger" })
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-12" style="height:50px;">
                        <span class="glyphicon glyphicon-lock form-control-feedback" style="left:15px"></span>
                        @Html.EditorFor(model => model.Password, new { htmlAttributes = new { @class = "form-control", style = "padding-left:30px;" } })
                        @Html.ValidationMessageFor(model => model.Password, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-12">
                        <input type="submit" value="登 录" class="btn btn-success" style="width:100%"/>
                    </div>
                    <div class="col-md-12" style="margin-top:20px;">
                        <a href="~/Account/Register">注册</a>
                        <a href="~/Home/Index" style="float:right">忘记密码</a>
                    </div>
                </div>
            </div>
        }

    </div>
</div>